package cn.zch.soft.util.task.gitee.repo.common;
import org.apache.http.Header;
import org.apache.http.message.BasicHeader;

import java.util.ArrayList;
import java.util.List;
/**
 * @author zchcpywin10
 */
public class CommonHeader {
  private CommonHeader() {}
  public static List<Header> commonHeaders() {
    List<Header> requestHeaders = new ArrayList<>();
    Header headerSecUa = new BasicHeader("sec-ch-ua", "\"Google Chrome\";v=\"93\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"93\"");
    Header headerAccept = new BasicHeader("Accept", "*/*;q=0.5, text/javascript, application/javascript, application/ecmascript, application/x-ecmascript");
    Header headerCsrf = new BasicHeader("X-CSRF-Token", "IbRjMcfJA+0spmYkuJEEmeRDj8cGgXgo6V9D37UXgOc=");
    Header headerSecUaMobile = new BasicHeader("sec-ch-ua-mobile", "?0");
    Header headerUserAgent = new BasicHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36");
    Header headerRequested = new BasicHeader("X-Requested-With", "XMLHttpRequest");
    Header headerSecUaPlatform = new BasicHeader("sec-ch-ua-platform", "\"Windows\"");
    Header headerCookie = new BasicHeader("Cookie", "Hm_ck_1630656202129=is-cookie-enabled; Hm_ck_1630656208552=is-cookie-enabled; Hm_ck_1630656272068=is-cookie-enabled; Hm_lpvt_24f17767262929947cc3631f99bfd274=1630656272; Hm_lvt_24f17767262929947cc3631f99bfd274=1629188406,1629344274,1630656123; close_wechat_tour=true; gitee-session-n=MDJOZE9VcTlyeWVhSnFUMDc2TG92bmd0VVR6YnRheGJ1SWZjMG1Ea2UxQzByYlFSZ3hBWEV3ekJveHhKc2crR1IyZnlYdFppKzdUU0tSdWlKcStzNTlxNGx6UXhWZzB2ZHUyVWdIbnBaZk94RkpOZlRscjE0enRaQ243SVhHVGI5VXlzdG1NcVEwZTVKblNjU3ZJL09pL1NseEpsb1FvK1JRMXJXdlVxVWU1NG1zZzl3Ym5jRzRTYlg4VWxKY0tVdTlHV2ZiWFBFWHdLTmp2U1Z2bjUwZFduS21TeFR0VEhjWFFjUmVaWENGd3o1ZCtZNG1CQjZVeGdBVllRU1k0bys3M2t4WkxCU1dEQUtNL2JyLzF3S2x0aUZqaTVVSHNPV1Z5RVhuSUZYSUlUSHlFWEZSZ0hNcTU1RlpId21VSGtCeXIwalJFYW9ZcHZwRXJESHoyR1VxR2I4SHBzSGpNSTlZVjRERnNxNFg3dUJkbzZuMDQ2bG96MGZsY1VyOUhVLS1aUW5lZVFMVlBHWGh2b08yZEoyc3p3PT0%3D--ecfb4afb2bf30f2890080076a08b5bd43cf97071; gitee_user=true; oschina_new_user=false; remote_way=http; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%22721431%22%2C%22first_id%22%3A%2217b5332395ad66-0502bf4edf3c91-4343363-2073600-17b5332395bf9e%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2217b5332395ad66-0502bf4edf3c91-4343363-2073600-17b5332395bf9e%22%7D; sensorsdata_domain_test=true; tz=Asia%2FShanghai; user_locale=zh-CN; yp_riddler_id=025c55ee-c29c-4231-9e9f-dc0c85b2c5b4");
    //
    requestHeaders.add(headerSecUa);
    requestHeaders.add(headerAccept);
    requestHeaders.add(headerCsrf);
    requestHeaders.add(headerSecUaMobile);
    requestHeaders.add(headerUserAgent);
    requestHeaders.add(headerRequested);
    requestHeaders.add(headerSecUaPlatform);
    requestHeaders.add(headerCookie);
    return requestHeaders;
  }
}
